@import url(https://fonts.googleapis.com/css?family=Open+Sans:600,400);

.frame{
    position: absolute;
    width: 400px;
    height: 400px;
    box-shadow: 1px 2px 10px rgba(0,0,0,0.3);
    inset: 0;
    margin: auto;
    background: linear-gradient(to top right, #fda231 0%, #fdca31 100%);
    overflow: hidden;
    border-radius: 2px;
    color: #497081;
    font-family: 'Open Sans', Arial, Helvetica, sans-serif;
}

.list{
    position: absolute;
    width: 240px;
    height: 280px;
    inset: 0;
    margin: auto;
    box-shadow: 4px 8px 12px rgba(0,0,0,0.1);
    border-radius: 3px;
    background-color: #fff;
    overflow: hidden;

    .head{
        padding: 20px 0;
        margin: 0 30px;
        border-bottom: 1px solid #d4dce0;

        .title{
            text-align: center;
            font-weight: 600;
            font-size: 20px;
            line-height: 30px;
        }

        .subtitle{
            text-align: center;
            font-size: 12px;
            line-height: 18px;
        }
    }

    ul{
        list-style: none;
        padding: 4px 0;
        margin: 0 30px;

        li{
            position: relative;
            display: block;
            margin: 24px 0;
            height: 14px;

            .text{
                float: left;
                font-size: 13px;
                line-height: 14px;
                cursor: pointer;
                transition: all .3s ease-in-out;

            }

            .button{
                position: relative;
                z-index: 2;
                box-sizing: border-box;
                float: right;
                width: 14px;
                height: 14px;
                border: 1px solid #497081;
                border-radius: 50%;
                cursor: pointer;
                transition: all .4s ease-out .5s;
            }

            .checkmark{
                position: absolute;
                fill: none;
                stroke-width: 1px;
                stroke: #c8d4d9;
                stroke-dasharray: 30 30;
                stroke-dashoffset: 30;
                top: 2px;
                right: 0;
                transition: all .5s ease-out;
            }

            input{
                display: none;

                &:checked ~ .text{
                    color: #c8d4d9;
                    text-decoration: line-through;
                }

                &:checked ~ .button{
                    transition: all .4s ease-in;
                    transform: scale(1.5);
                    opacity: 0;
                }

                &:checked ~ .checkmark{
                    stroke-dashoffset: 0;
                    transition: all .5s ease-in .4s;
                }
            }
        }

    }

}